
public class ControlStatments {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		 
		Employee kalyanRef =  new Employee();
	 	kalyanRef.grade = "G4";
		kalyanRef.name = "Kalyan";
		kalyanRef.id ="1234";
		kalyanRef.serviceYears = 3;
		kalyanRef.hourPayRate = 45;
		
		
		 
		
		System.out.println("Kalyan Salary ---- :"+kalyanRef.getSalary());
		
		
		Employee alexRef  = new Employee();
		alexRef.grade = "G2";
		alexRef.name = "Alex";
		alexRef.id ="1235";
		alexRef.serviceYears = 4;
		alexRef.hourPayRate = 50;
		
		System.out.println("ALEX Salary  -- :"+alexRef.getSalary());
		
		
		
		
/*		
		if(kalyanRef.grade.equalsIgnoreCase("G1") || kalyanRef.serviceYears >= 4)
		{
		  System.out.println("He is Grade 1 Employee -- Salary is $5000 ");
		}
		else if (kalyanRef.grade.equalsIgnoreCase("G2") || kalyanRef.serviceYears >= 3)
		{
			System.out.println("He is Grade 2 Employee -- Salary is $4000 ");
		}
		else if(kalyanRef.grade.equalsIgnoreCase("G3") || kalyanRef.serviceYears >= 2)
		{
			System.out.println("He is Grade 3 Employee -- Salary is $3000 ");
		}
		else
		{
			System.out.println("He is Grade 4 Employee -- Salary is $2000 ");
		}
		 
*/
	}

}
